<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRemoteRequestUsLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_remote_request_us_log', function (Blueprint $table) {
            $table->increments('id');
            $table->string('url', 255)->default('')->comment('请求地址');
            $table->text('request')->default('')->comment('请求内容json');

            $table->timestamp('created_at')->useCurrent()->comment('生成时间');
            $table->timestamp('updated_at')->useCurrent()->comment('更新时间');

            $table->engine = 'InnoDB';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_remote_request_us_log');
    }
}
